const GameBoard = [
	null, null, null, null, null,
	//5人
	{
		Good: 3, Bad: 2,
		Turn: [[2,3,2,3,3]],
		HasProtect: false,
		Default: {
			NeedPai: false,
			NeedNa: false,
			NeedMo: false,
			NeedAo: false,
			BadShow: false
		}
	},
	//6人
	{
		Good: 4, Bad: 2,
		Turn: [[2,3,4,3,4]],
		HasProtect: false,
		Default: {
			NeedPai: true,
			NeedNa: false,
			NeedMo: false,
			NeedAo: false,
			BadShow: false
		}
	},
	//7人
	{
		Good: 4, Bad: 3,
		Turn: [[2,3,3,4,4], [2,3,4,4,4]],
		HasProtect: false,
		Default: {
			NeedPai: true,
			NeedNa: false,
			NeedMo: false,
			NeedAo: false,
			BadShow: false
		}
	},
	//8人
	{
		Good: 5, Bad: 3,
		Turn: [[3,4,4,5,5], [3,4,5,4,5]],
		HasProtect: true,
		Default: {
			NeedPai: true,
			NeedNa: false,
			NeedMo: false,
			NeedAo: false,
			BadShow: false
		}
	},
	//9人
	{
		Good: 6, Bad: 3,
		Turn: [[3,4,4,5,5], [3,4,5,5,5], [3,4,5,5,6]],
		HasProtect: true,
		Default: {
			NeedPai: true,
			NeedNa: true,
			NeedMo: true,
			NeedAo: false,
			BadShow: false
		}
	},
	//10人
	{
		Good: 6, Bad: 4,
		Turn: [[3,4,4,5,5], [3,4,5,5,6], [4,4,5,5,6], [4,5,6,5,6]],
		HasProtect: true,
		Default: {
			NeedPai: true,
			NeedNa: true,
			NeedMo: true,
			NeedAo: true,
			BadShow: false
		}
	}
];

const MaskValue = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

function GetValueByMask(val){
	for(let i=0; i<MaskValue.length; i++){
		if(MaskValue[i] === val){
			return i;
		}
	}
	return null;
}